package third;

public class five_27 {
    public static void main(String[] args) {
        int k=0;
        for(int i=101;i<=2100;i++){
            if((i%4==0 && i%100!=0) || i%400==0) {
                if(k%10==0 && k!=0)
                {System.out.println();
                    System.out.print(i + " ");}
                else
                    System.out.print(i + " ");
                k++;
            }
        }

    }
}
